package com.cloud.lawcase.api.entity;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.*;

import com.cloud.lawcase.api.bean.LawItemCauseBean;

@Table(name = "tc_dic_law_item")
public class TcDicLawItem {
	@Id
	@Column(name = "item_id")
	private Long itemId;

	@Column(name = "item_code")
	private String itemCode;

	@Column(name = "chapter_id")
	private Integer chapterId;

	@Column(name = "section_id")
	private Integer sectionId;

	@Column(name = "article_id")
	private Integer articleId;

	@Column(name = "paragraph_id")
	private Integer paragraphId;

	@Column(name = "sub_paragraph_id")
	private Integer subParagraphId;

	@Column(name = "entry_id")
	private Integer entryId;

	@Column(name = "item_type_id")
	private Integer itemTypeId;

	@Column(name = "item_name")
	private String itemName;

	@Column(name = "item_content")
	private String itemContent;

	@Column(name = "law_id")
	private Long lawId;

	@Transient
	private String lawTitle;
	
	@Transient
	private Long causeId;
	
	@Transient
	private String displayItemName;

	@Transient
	private List<LawItemCauseBean> children = new ArrayList<LawItemCauseBean>();
	
	/**
	 * @return item_code
	 */
	public String getItemCode() {
		return itemCode;
	}

	/**
	 * @param itemCode
	 */
	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}

	/**
	 * @return chapter_id
	 */
	public Integer getChapterId() {
		return chapterId;
	}

	/**
	 * @param chapterId
	 */
	public void setChapterId(Integer chapterId) {
		this.chapterId = chapterId;
	}

	/**
	 * @return section_id
	 */
	public Integer getSectionId() {
		return sectionId;
	}

	public void setSectionId(Integer sectionId) {
		this.sectionId = sectionId;
	}

	public Integer getArticleId() {
		return articleId;
	}

	public void setArticleId(Integer articleId) {
		this.articleId = articleId;
	}

	public Integer getParagraphId() {
		return paragraphId;
	}

	public void setParagraphId(Integer paragraphId) {
		this.paragraphId = paragraphId;
	}

	public Integer getSubParagraphId() {
		return subParagraphId;
	}

	public void setSubParagraphId(Integer subParagraphId) {
		this.subParagraphId = subParagraphId;
	}

	public Long getItemId() {
		return itemId;
	}

	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}

	public Integer getEntryId() {
		return entryId;
	}

	public void setEntryId(Integer entryId) {
		this.entryId = entryId;
	}

	/**
	 * @return item_type_id
	 */
	public Integer getItemTypeId() {
		return itemTypeId;
	}

	/**
	 * @param itemTypeId
	 */
	public void setItemTypeId(Integer itemTypeId) {
		this.itemTypeId = itemTypeId;
	}

	/**
	 * @return item_name
	 */
	public String getItemName() {
		return itemName;
	}

	/**
	 * @param itemName
	 */
	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	/**
	 * @return item_content
	 */
	public String getItemContent() {
		return itemContent;
	}

	/**
	 * @param itemContent
	 */
	public void setItemContent(String itemContent) {
		this.itemContent = itemContent;
	}

	public Long getLawId() {
		return lawId;
	}

	public void setLawId(Long lawId) {
		this.lawId = lawId;
	}

	public String getDisplayItemName() {
		return displayItemName;
	}

	public void setDisplayItemName(String displayItemName) {
		this.displayItemName = displayItemName;
	}

	public List<LawItemCauseBean> getChildren() {
		return children;
	}

	public void setChildren(List<LawItemCauseBean> children) {
		this.children = children;
	}

	public String getLawTitle() {
		return lawTitle;
	}

	public void setLawTitle(String lawTitle) {
		this.lawTitle = lawTitle;
	}

	public Long getCauseId() {
		return causeId;
	}

	public void setCauseId(Long causeId) {
		this.causeId = causeId;
	}
	
}